]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Use Clutter.GridLayout
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Aug 2014 21:26:45 +0000 (23:26 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 6 Aug 2014 13:23:21 +0000 (15:23 +0200)
Clutter.TableLayout has been deprecated, so move to the recommended
replacement.

js/ui/appDisplay.js

index 194905f0bdbdc3bf8850dd50fdc199a787e801e5..3eae1e5a3d858f3e23fea456c6e879f3f814ccc6 100644 (file)
@@ -964,7 +964,7 @@ const FolderView = new Lang.Class({
     },
 
     createFolderIcon: function(size) {
-        let layout = new Clutter.TableLayout();
+        let layout = new Clutter.GridLayout();
         let icon = new St.Widget({ layout_manager: layout,
                                    style_class: 'app-folder-icon' });
         layout.hookup_style(icon);
@@ -980,7 +980,7 @@ const FolderView = new Lang.Class({
             } else {
                 bin = new St.Bin({ width: subSize, height: subSize });
             }
-            layout.pack(bin, rtl ? (i + 1) % 2 : i % 2, Math.floor(i / 2));
+            layout.attach(bin, rtl ? (i + 1) % 2 : i % 2, Math.floor(i / 2), 1, 1);
         }
 
         return icon;